package com.mla.fastdfs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.mla.fastdfs.commom.Result;
import com.mla.fastdfs.dto.RolePermissionDto;
import com.mla.fastdfs.dto.RoleSaveDto;
import com.mla.fastdfs.dto.UserRoleSaveDto;
import com.mla.fastdfs.pojo.Role;

import java.util.List;

/**
 * @author Jun
 * @version v1.0
 * @date 2020-08-17
 */
public interface RoleService extends IService<Role> {

    void insert(Role record);

    void update(Role record);

    void del(Integer id);

    Role selectByPrimaryKey(Integer id);

    List<Role> getList(Role record);

    PageInfo<Role> pageList(Role record, Integer pageNo, Integer pageSize);

    Result saveRole(RoleSaveDto record);

    Result userRole(UserRoleSaveDto record);

    Result roleInfo(RolePermissionDto record);
}